package org.faradel.pharmapp.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.springframework.stereotype.Component;

/**
 * The persistent class for the PharmaUser database table.
 * 
 */
@Entity
@Component("pharmaUser")
@Table(name = "PharmaUser")
public class PharmaUser implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "pharmaUser_Id")
    private int pharmaUserId;

    @Column(name = "first_name")
    private String firstName;

    @Column(name = "job_id")
    private int jobId;

    @Column(name = "last_modified")
    private Date lastModified;

    @Column(name = "last_name")
    private String lastName;

    @Column(name = "middle_initial")
    private String middleInitial;

    @Column(name = "provider_id")
    private int providerId;

    @Column(name = "user_address")
    private String userAddress;

    @Column(name = "user_city")
    private String userCity;

    @Column(name = "user_Country")
    private String userCountry;

    @Column(name = "user_email")
    private String userEmail;

    @Column(name = "user_last_modified")
    private Integer userLastModified;

    @Column(name = "user_phone")
    private String userPhone;

    @Column(name = "user_State")
    private String userState;

    @Column(name = "user_type")
    private String userType;

    @Column(name = "user_zip")
    private String userZip;

    @Column(name = "user_Status")
    private boolean userStatus;

    public boolean isUserStatus()
    {
        return userStatus;
    }

    public void setUserStatus(boolean userStatus)
    {
        this.userStatus = userStatus;
    }

    // bi-directional one-to-one association to Validation
    @OneToOne(mappedBy = "pharmaUser")
    private Validation validation;

    public PharmaUser()
    {
    }

    public int getPharmaUserId()
    {
        return this.pharmaUserId;
    }

    public void setPharmaUserId(int pharmaUser_Id)
    {
        this.pharmaUserId = pharmaUser_Id;
    }

    public String getFirstName()
    {
        return this.firstName;
    }

    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }

    public int getJobId()
    {
        return this.jobId;
    }

    public void setJobId(int jobId)
    {
        this.jobId = jobId;
    }

    public Date getLastModified()
    {
        return this.lastModified;
    }

    public void setLastModified(Date lastModified)
    {
        this.lastModified = lastModified;
    }

    public String getLastName()
    {
        return this.lastName;
    }

    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }

    public String getMiddleInitial()
    {
        return this.middleInitial;
    }

    public void setMiddleInitial(String middleInitial)
    {
        this.middleInitial = middleInitial;
    }

    public int getProviderId()
    {
        return this.providerId;
    }

    public void setProviderId(int providerId)
    {
        this.providerId = providerId;
    }

    public String getUserAddress()
    {
        return this.userAddress;
    }

    public void setUserAddress(String user_address)
    {
        this.userAddress = user_address;
    }

    public String getUserCity()
    {
        return this.userCity;
    }

    public void setUserCity(String user_city)
    {
        this.userCity = user_city;
    }

    public String getUserCountry()
    {
        return this.userCountry;
    }

    public void setUserCountry(String user_Country)
    {
        this.userCountry = user_Country;
    }

    public String getUserEmail()
    {
        return this.userEmail;
    }

    public void setUserEmail(String userEmail)
    {
        this.userEmail = userEmail;
    }

    public Integer getUserLastModified()
    {
        return this.userLastModified;
    }

    public void setUserLastModified(Integer userLastModified)
    {
        this.userLastModified = userLastModified;
    }

    public String getUserPhone()
    {
        return this.userPhone;
    }

    public void setUserPhone(String user_phone)
    {
        this.userPhone = user_phone;
    }

    public String getUserState()
    {
        return this.userState;
    }

    public void setUserState(String user_State)
    {
        this.userState = user_State;
    }

    public String getUserType()
    {
        return this.userType;
    }

    public void setUserType(String userType)
    {
        this.userType = userType;
    }

    public String getUserZip()
    {
        return this.userZip;
    }

    public void setUserZip(String user_zip)
    {
        this.userZip = user_zip;
    }

    public Validation getValidation()
    {
        return this.validation;
    }

    public void setValidation(Validation validation)
    {
        this.validation = validation;
    }

}